Convert XenAPI platform values to appropriate types.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 18 Mar 2008 11:07:00 +0000 (11:07 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 18 Mar 2008 11:07:00 +0000 (11:07 +0000)
commit8ff66a38facf0c9edfef181b6cd7a8c395aa1df0
treefbc5fe7190621c93287adf0b19641fc9746be9dc
parent97ae3c020268b1208f6efa83e2eb156ba6ad2648
Convert XenAPI platform values to appropriate types.

XenAPI defines the platform attribute of a VM as a string-string map
but in various code paths in xend the platform entries are expected to be
another type, e.g. int.  This patch defines the types of each platform
entry and converts the entry values to appropriate type when new domU
configuration is created via XenAPI.

Alternatively the values could be casted to appropriate type when used
but seems prudent to do the conversion when domU configuration is
created.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
tools/python/xen/xend/XendConfig.py